<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<link rel="icon" href="favicon.ico">
		<title><%= title %></title>
		<script type="text/javascript">document.write("<script src='config.js?"+new Date().getTime()+"'><\/script>");</script>
	</head>
	<body>
		<noscript>
			<strong>We're sorry but <%= title %> doesn't work properly without JavaScript
				enabled. Please enable it to continue.</strong>
		</noscript>
		<script type="text/javascript">
			var theme = window.localStorage.getItem('APP_THEME');
			if(theme){ document.body.setAttribute('data-theme',  JSON.parse(theme)) }
		</script>
		<div id="app" class="aminui">
			<style>
				html[data-theme='dark'] .app-loading { background-color: #2c344a; }
				html[data-theme='dark'] .app-loading .app-loading-title { color: rgba(255, 255, 255, 0.85); }
				.app-loading { display: flex; width: 100%; height: 100%; justify-content: center; align-items: center; flex-direction: column; background-color: #f4f7f9; }
				.app-loading .app-loading-wrap { position: absolute; top: 50%; left: 50%; display: flex; -webkit-transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0); justify-content: center; align-items: center; flex-direction: column; }
				.app-loading .dots { display: flex; padding: 98px; justify-content: center; align-items: center; }
				.app-loading .app-loading-title { display: flex; margin-top: 30px; font-size: 30px; color: rgba(0, 0, 0, 0.85); justify-content: center; align-items: center; }
				.app-loading .app-loading-logo { display: block; width: 160px; margin: 0 auto; margin-bottom: 20px; }
				.dot { position: relative; display: inline-block; width: 48px; height: 48px; margin-top: 30px; font-size: 32px; transform: rotate(45deg); box-sizing: border-box; animation: antRotate 1.2s infinite linear; }
				.dot i { position: absolute; display: block; width: 20px; height: 20px; background-color: #0065cc; border-radius: 100%; opacity: 0.3; transform: scale(0.75); animation: antSpinMove 1s infinite linear alternate; transform-origin: 50% 50%; }
				.dot i:nth-child(1) { top: 0; left: 0; }
				.dot i:nth-child(2) { top: 0; right: 0; -webkit-animation-delay: 0.4s; animation-delay: 0.4s; }
				.dot i:nth-child(3) { right: 0; bottom: 0; -webkit-animation-delay: 0.8s; animation-delay: 0.8s; }
				.dot i:nth-child(4) { bottom: 0; left: 0; -webkit-animation-delay: 1.2s; animation-delay: 1.2s; }
				@keyframes antRotate { to { -webkit-transform: rotate(405deg); transform: rotate(405deg); }}
				@-webkit-keyframes antRotate { to { -webkit-transform: rotate(405deg); transform: rotate(405deg); }}
				@keyframes antSpinMove { to { opacity: 1; } }
				@-webkit-keyframes antSpinMove { to { opacity: 1; } }
			</style>
			<div class="app-loading">
				<div class="app-loading-wrap">
					<img src="/img/bydLogo.png" class="app-loading-logo" alt="Logo" />
					<div class="app-loading-dots">
						<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
					</div>
					<!-- <div class="app-loading-title"><%= title %></div> -->
				</div>
			</div>
		</div>
		<!-- built files will be auto injected -->
		<script type="module" src="./src/main.js"></script>
	</body>
	<div id="versionCheck" style="display: none;position: absolute;z-index: 99;top:0;left:0;right:0;bottom:0;padding:40px;background:rgba(255,255,255,0.9);color: #333;">
		<h2 style="line-height: 1;margin: 0;font-size: 24px;">当前使用的浏览器内核版本过低 :(</h2>
		<p style="line-height: 1;margin: 0;font-size: 14px;margin-top: 20px;opacity: 0.8;">当前版本：<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p>
		<p style="line-height: 1;margin: 0;font-size: 14px;margin-top: 10px;opacity: 0.8;">最低版本要求：Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p>
		<p style="line-height: 1;margin: 0;font-size: 14px;margin-top: 10px;opacity: 0.8;">请升级浏览器版本，或更换现代浏览器，如果你使用的是双核浏览器,请切换到极速/高速模式。</p>
	</div>
	<script type="text/javascript">
	function getBrowerInfo(){
		var userAgent = window.navigator.userAgent;
		var browerInfo = {
			type: 'unknown',
			version: 'unknown',
			userAgent: userAgent
		};
		if(document.documentMode){
			browerInfo.type = "IE"
			browerInfo.version = document.documentMode + ''
		}else if(indexOf(userAgent, "Firefox")){
			browerInfo.type = "Firefox"
			browerInfo.version = userAgent.match(/Firefox\/([\d.]+)/)[1]
		}else if(indexOf(userAgent, "Opera")){
			browerInfo.type = "Opera"
			browerInfo.version = userAgent.match(/Opera\/([\d.]+)/)[1]
		}else if(indexOf(userAgent, "Edg")){
			browerInfo.type = "Edg"
			browerInfo.version = userAgent.match(/Edg\/([\d.]+)/)[1]
		}else if(indexOf(userAgent, "Chrome")){
			browerInfo.type = "Chrome"
			browerInfo.version = userAgent.match(/Chrome\/([\d.]+)/)[1]
		}else if(indexOf(userAgent, "Safari")){
			browerInfo.type = "Safari"
			browerInfo.version = userAgent.match(/Safari\/([\d.]+)/)[1]
		}
		return browerInfo
	}
    function indexOf(userAgent, brower) {
        return userAgent.indexOf(brower) > -1
    }
	function isSatisfyBrower(){
		var minVer = {
			"Chrome": 71,
			"Firefox": 65,
			"Safari": 12,
			"Edg": 97,
			"IE": 999
		}
		var browerInfo = getBrowerInfo()
		var materVer = browerInfo.version.split('.')[0]
        return materVer >= minVer[browerInfo.type]
	}
	if(!isSatisfyBrower()){
		document.getElementById('versionCheck').style.display = 'block';
		document.getElementById('versionCheck-type').innerHTML = getBrowerInfo().type;
		document.getElementById('versionCheck-version').innerHTML = getBrowerInfo().version;
	}
	</script>
</html>
